package com.xlh.constant;

import com.google.common.collect.Lists;

import java.util.List;

/**
 * 文件尾缀
 * <p>
 * Created by lx on 2020/7/30.
 */
public class FileSuffixConstant {

    /**
     * 图片尾缀
     */
    public static final List<String> PIC_SUFFIX = Lists.newArrayList("png", "bmp", "jpg", "jpeg", "tif",
            "gif", "pcx", "tga", "exif", "fpx", "svg", "psd", "cdr", "pcd",
            "dxf", "ufo", "eps", "ai", "raw", "wmf", "webp");

    /**
     * 视频尾缀
     */
    public static final List<String> VIDEO_SUFFIX = Lists.newArrayList("mp4", "avi", "mpeg", "mpg",
            "mov", "rm", "ram", "navi", "asf", "wmv", "3gp", "flv", "swf");

    /**
     * ppt尾缀
     */
    public static final List<String> PPT_SUFFIX = Lists.newArrayList("ppt", "pptx");

    /**
     * word尾缀
     */
    public static final List<String> WORD_SUFFIX = Lists.newArrayList("doc", "docx");

    /**
     * pdf尾缀
     */
    public static final List<String> PDF_SUFFIX = Lists.newArrayList("pdf");

    /**
     * excel尾缀
     */
    public static final List<String> EXCEL_SUFFIX = Lists.newArrayList("xls", "xlsx", "csv", "txt");

    /**
     * 压缩尾缀
     */
    public static final List<String> COMPRESSION_SUFFIX = Lists.newArrayList("zip", "rar");

    /**
     * log尾缀
     */
    public static final List<String> LOG_SUFFIX = Lists.newArrayList("log");

    /**
     * sql尾缀
     */
    public static final List<String> SQL_SUFFIX = Lists.newArrayList("sql");

    /**
     * java尾缀
     */
    public static final List<String> JAVA_SUFFIX = Lists.newArrayList("java", "class");

    /**
     * python尾缀
     */
    public static final List<String> PYTHON_SUFFIX = Lists.newArrayList("py");

    /**
     * xml尾缀
     */
    public static final List<String> XML_SUFFIX = Lists.newArrayList("xml");

    /**
     * 配置尾缀
     */
    public static final List<String> CONFIG_SUFFIX = Lists.newArrayList(
            "conf", "config", "properties", "yml");

    /**
     * web前端尾缀
     */
    public static final List<String> WEB_SUFFIX = Lists.newArrayList("css", "html", "jsp", "ico", "js");

    /**
     * 字体尾缀
     */
    public static final List<String> FONT_SUFFIX = Lists.newArrayList("woff", "ttf", "eot");

    /**
     * 特殊尾缀
     */
    public static final List<String> SUFFIX = Lists.newArrayList("sh", "exe");

}


